package gossbs;

public class J01dustmq {
	public static void main(String[]args){
		Scanner rd = new Sanner(System.in);
		int n = 0;
		double sum = 0;
		int i =0;
		
		while ((i = rd.nextlnt()) != 0){
			sum = sum +i;
			n++;
		}
		System.out.println("입력된 수의 개수는" +  n + "개이며 평균은" + sum/n + "입니다.");
	}
}
